package com.mlk.busPram.constant;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * 业务参数常量维护
 */
public abstract class BusParamConstant {

    /**
     * 品牌类型
     */
    public static final int BRANCH_TYPE = 1;

    /**
     * 型号类型
     */
    public static final  int PARAM_TYPE = 2;

    /**
     * 故障类型
     */
    public static final  int FAULT_TYPE = 3;

    /**
     * 换购型号
     */
    public static final int REBACK_PARAM_TYPE = 4;

    /**
     * 分类
     */
    public static final int CATEGORY_TYPE = 5;

    /**
     * 产品型号
     */
    public static final int PIC_BASE_PARAM_TYPE = 6;


    final static Map<Integer,String> ref = Maps.newHashMap();

    static{
        ref.put(1,"品牌");
        ref.put(2,"报备型号");
        ref.put(3,"故障");
        ref.put(4,"换购型号");
        ref.put(5,"分类");
        ref.put(6,"产品型号");
    }


    /**
     * 通过键获取值
     * @param key
     * @return
     */
    public  static String adapt(Integer key){
        return ref.get(key);
    }

}
